import { createSlice, createAsyncThunk } from '@reduxjs/toolkit'

const slice = createSlice({
  name: 'lang',
  initialState: { lang: 'en' },
  reducers: {
    setLang(state, action) {
      state.lang = action.payload
    },
  },
})
export default slice
